package bean;

public class StudentBean {
   //编号
    private Integer id;
   //姓名
    private String name;
    //性别
    private String gender;
    //住址
    private String address;
   //考试分数
    private double score;

    public StudentBean(Integer id, String name, String gender, String address, double score) {
        this.id = id;
        this.name = name;
        this.gender = gender;
        this.address = address;
        this.score = score;
    }

    public Integer getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public String getGender() {
        return gender;
    }

    public String getAddress() {
        return address;
    }

    public double getScore() {
        return score;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public void setScore(double score) {
        this.score = score;
    }

    @Override
    public String toString() {
        return this.getName();
    }
}
